from selenium.webdriver.common.by import By

class MailListPageElement():
    """
    通讯录页面元素枚举类
    """

    add_button = (By.CSS_SELECTOR, "i[class=member_colLeft_top_addBtn]")
    add_org_button = (By.XPATH, "//a[text()='添加部门']")
    org_name_input = (By.XPATH, "//input[@name='name']")
    parent_org_select = (By.XPATH, "//span[text()='选择所属部门']/..")
    parent_org_choice = (By.XPATH, "//form//li[@role='treeitem']//a[text()='{}']")
    define_button = (By.XPATH, "//a[@d_ck='submit']")

    choice_org = (By.XPATH, "//a[text()='{}']")
    choice_org_button = (By.XPATH, "//a[text()='{}']/span")
    update_name_button = (By.XPATH, "//a[text()='修改名称']")

    tips_manager = (By.XPATH, "//div[@id='js_tips']")